package com.lihan.GetSeatInLib.Repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.lihan.GetSeatInLib.Domain.LibTable;
import com.lihan.GetSeatInLib.Domain.SeatModel;

/**
 * 
 * @ClassName: SeatRepository
 * @Description: 座位的持久层
 * @author ASUS
 * @date 2022年2月27日
 *
 */
@Repository
public interface SeatRepository extends JpaRepository<SeatModel, Long>{

	@Query("from SeatModel where belong = ?0")
	List<SeatModel> SearchSeatByTable(LibTable table);
}
